﻿using System;
using System.Collections.Generic;
using System.Text;

using System.IO; 

namespace DupeKill.UnitTests
{
    public static class TestCaseFileHelper
    {
        public static void CreateFileSet000()
        {
            if(Directory.Exists(@".\root"))
            {
                Directory.Delete(@".\root", true); 
            }
            Directory.CreateDirectory(@".\root");
            Directory.CreateDirectory(@".\root\a");
            Directory.CreateDirectory(@".\root\b");
            File.WriteAllText(@".\root\a\001.txt", "a");
            File.WriteAllText(@".\root\a\002.txt", "b");
            File.WriteAllText(@".\root\b\003.txt", "c");
            File.WriteAllText(@".\root\b\004.txt", "d");
        }

        public static string CreateTestFile(string name, string content)
        {
            string path = Path.Combine(@".\root\", name);
            File.WriteAllText(path, content); 
            return path; 
        }
    }
}
